-- indentLine config
-- local status_ok, indent_blankline = pcall(require, "indent_blankline")
-- if not status_ok then
--     return
-- end

vim.g.indentLine_enabled = 1
vim.g.indentLine_char_list = {'|', '¦', '┆', '┊'}
vim.g.indentLine_fileTypeExclude = {
	'alpha',
	'defx',
	'denite',
	'dashboard',
	'tagbar',
	'vista_kind',
	'vista',
	'startify',
	'nerdtree',
	'txt',
	'packer',
	'log',
}
vim.g.indentLine_concealcursor = 'niv'

vim.cmd([[autocmd FileType json,markdown let g:indentLine_conceallevel=0]])

-- TODO: I guess this char can be space
vim.g.indent_blankline_char = "▏"
vim.g.indent_blankline_show_trailing_blankline_indent = false
vim.g.indent_blankline_show_first_indent_level = true
vim.g.indent_blankline_use_treesitter = true
vim.g.indent_blankline_show_current_context = true
vim.g.indent_blankline_context_patterns = {
	"class",
	"return",
	"function",
	"method",
	"^if",
	"^while",
	"jsx_element",
	"^for",
	"^object",
	"^table",
	"block",
	"arguments",
	"if_statement",
	"else_clause",
	"jsx_element",
	"jsx_self_closing_element",
	"try_statement",
	"catch_clause",
	"import_statement",
	"operation_type",
}
